package me.chanjar.weixin.mp.bean.card;

import java.io.Serializable;

import lombok.Data;
import me.chanjar.weixin.common.util.ToStringUtils;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;

/**
 * @author francis
 * @version 18/03/26
 */
@Data
public class WxMpCardCreateParam implements Serializable {

	private static final long serialVersionUID = 1L;

	private String cardType;

	private WxMpCardModel model;

	@Override
	public String toString() {
		return ToStringUtils.toSimpleString(this);
	}

	public String toJson() {
		return WxMpGsonBuilder.INSTANCE.create().toJson(this);
	}
}
